/**  \file Page6.qml
\brief Page6 form management

Price My House for Nokia mobile platforms.

\author © 2011 Enrico Miglino / Tech Consulting (enrico.miglino@ovi.com)
\author "Evimin Fiyati Price My House" is protected by the copyright law
\author Distributed under the LGPL 3.0 license.
\date 2011

\par Licensing notes

    "Price My House" is free software: you can redistribute it
    and/or modify it under the terms of the Lesser GNU General Public License
    as published by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    "Price My House" is distributed in the hope that it
    will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    Lesser GNU General Public License for more details.

    You should have received a copy of the Lesser GNU General Public License
    along with "Price My House".
    If not, see <http://www.gnu.org/licenses/>.

*/

import QtQuick 1.0
import "../Qt-Complex" as Framework
import "../Qt-Complex/Geometry.js" as Geometry

Item {
    id: page6

    // Button labels contents
    property string txt1Label: ""; property string txt2Label: "";
    property string txt3Label: ""; property string txt4Label: ""
    // Field labels contents
    property string fld1: ""; property string fld2: ""; property string fld3: ""; property string fld4: ""
    // Flag options label
    property string opt1: "";
    // Flag info label
    property string inf1: "";

    // Signals
    signal txt1Click; signal txt2Click; signal txt3Click; signal txt4Click

    Column {
        id: columnFields

        width: parent.width
        spacing: Geometry.getFieldSpacing();
        anchors.top: parent.top
        anchors.topMargin: Geometry.getSeparator() * 2;

        Framework.Loader {
            id: input_txt1
            width: parent.width; elementFactor: 0.50;
            height: Geometry.getFieldHeight(); obj_string: txt1Label;
            fontPoints: Geometry.getFontPoints(); theme: "PMH";  obj: "HorBtnText";
            obj_flag: false // do not set to object to input text.
            onClicked: { txt1Click(); }
        }
        Framework.Loader {
            id: input_txt2
            width: parent.width; elementFactor: 0.50;
            height: Geometry.getFieldHeight(); obj_string: txt2Label;
            fontPoints: Geometry.getFontPoints(); theme: "PMH";  obj: "HorBtnText";
            obj_flag: false // do not set to object to input text.
            onClicked: { txt2Click(); }
        }
        Framework.Loader {
            id: input_txt3
            width: parent.width; elementFactor: 0.50;
            height: Geometry.getFieldHeight(); obj_string: txt3Label;
            fontPoints: Geometry.getFontPoints(); theme: "PMH";  obj: "HorBtnText";
            obj_flag: false // do not set to object to input text.
            onClicked: { txt3Click(); }
        }
        Framework.Loader {
            id: input_txt4
            width: parent.width; elementFactor: 0.50;
            height: Geometry.getFieldHeight(); obj_string: txt4Label;
            fontPoints: Geometry.getFontPoints(); theme: "PMH";  obj: "HorBtnText";
            obj_flag: false // do not set to object to input text.
            onClicked: { txt4Click(); }
        }
//        SwitchLabel {
//            id: option1
//            height: switchHeigth; fontPoints: fontSwitches
//            switchedOn: false; labelName: opt1; infoText: inf1; popInfo: true
//            onSwitched: { console.log("option 1 - changed: " + switchedOn) }
//        }
    }
}

